package com.xnyzc.lhy.mis.mapper.system;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnyzc.lhy.mis.entity.system.OaSysBillRule;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 计费规则表 Mapper 接口
 * </p>
 *
 * @author rhr
 * @since 2020-11-15
 */
public interface OaSysBillRuleMapper extends BaseMapper<OaSysBillRule> {

    List<OaSysBillRule> selectRuleList(Long groupId, Integer vehicleType,Integer callType,Long areaId,Integer channel);
    List<OaSysBillRule> selectRuleListNew(Long groupId, Integer callType, Long areaId, Integer channel, Integer deleted,Integer vehicleType,String ruleName);
    List<OaSysBillRule> selectRuleListNewAndScene(Long groupId, Integer callType, Long areaId, Integer channel, Integer deleted,@Param(value = "rulesNo") Integer rulesNo);
    List<OaSysBillRule> rules();

    List<OaSysBillRule> selectOldRuleList();

    Integer updateByRuleId(Long ruleId, String newJsonRule);
}
